API Documentation
Public Attributes | List of all members
nkGraphics::DecodedMaterialData Struct Referencefinal

Holds data about a decoded material. More...

Public Attributes

nkMaths::Vector _ambientColor = nkMaths::Vector(1, 1, 1)
 The ambient color, if any.
 
int _ambientTextureIndex = -1
 The ambient texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.
 
nkMaths::Vector _diffuseColor = nkMaths::Vector(1, 1, 1)
 The diffuse color, if any.
 
int _diffuseTextureIndex = -1
 The diffuse texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.
 
nkMaths::Vector _specularColor = nkMaths::Vector(1, 1, 1)
 The specular color, if any.
 
int _specularTextureIndex = -1
 The specular texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.
 
int _normalTextureIndex
 The normal map texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1. More...
 
int _alphaTextureIndex = -1
 The alpha texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.
 

Detailed Description

Holds data about a decoded material.

Member Data Documentation

◆ _normalTextureIndex

int nkGraphics::DecodedMaterialData::_normalTextureIndex
Initial value:
= -1
float _alphaValue = 1.f

The normal map texture, as the index within the DecodedTextureData set counterpart. No texture is encoded by -1.

The global alpha value, if any.


The documentation for this struct was generated from the following file: